<?php
	
	class XSLTResponse 
	{
		function __construct()
		{
			header('Content-type: application/xml; charset: utf-8');
		}
		
		function out()
		{
                        $file = Styler::locate(Request::param('page').'.xslt');
			
			Log::put('XSLT file: '.$file);
			if (file_exists($file)) 
			{
				echo file_get_contents($file);
			} else {
				echo file_get_contents('usr/xslt/nofile.xslt');
			}
		}
	}
?>